<script setup lang="ts">
	import { setStorage, getStorage, getSystemInfoSync } from "./utils/common";
	import { onShow, onLaunch, onHide } from "@dcloudio/uni-app";
	import useStore from "./stores/index";
	const store = useStore();
	onLaunch(() => {
		const token = getStorage("token");
		if (token) {
			store.setUserInfo();
		}
		// #ifdef APP-PLUS
		if (!uni.getStorageSync("appVersion")) {
			uni.setStorageSync("appVersion", plus.runtime.versionCode);
		}
		// #endif
	});

	onShow(() => { });
	onHide(() => { });
</script>

<style lang="scss">
	@import url("static/font/stylesheet.css");

	html,
	body {
		background-color: #f5f5f5;
		box-sizing: border-box !important;
	}
	image {
		will-change: transform;
	}

	.pages {
		background-color: $background-color;
	}

	.goto {
		width: 14rpx;
		height: 24rpx;
		overflow: hidden;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}

	.goto>image {
		width: 14rpx;
		height: 24rpx;
	}

	input {
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
	}

	textarea {
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
	}

	/*  #ifdef  MP-WEIXIN  */
	input[disabled] {
		color: #a0a0a0 !important;
	}

	/*  #endif  */

	input::disabled {
		color: #a0a0a0 !important;
		-webkit-text-fill-color: #666 !important;
		-webkit-opacity: 0.6 !important;
	}

	input {
		font-size: 32rpx;
	}

	::-webkit-scrollbar {
		display: none !important;
		width: 0;
		height: 0;
		color: transparent;
	}

	.select_bdy {
		background-color: #fff;
		padding: 20rpx 0 68rpx 0;
		background: #ffffff;
		border-radius: 16rpx 16rpx 0rpx 0rpx;
		width: 100%;
	}

	.input-placeholder {
		border: #bcbcbc;
	}

	.flex_bottom {
		position: fixed;
		bottom: 0;
		width: 100%;
		background-color: #fff;
		text-align: center;
		@include titlefont(32rpx);
		@include flexRC;
		color: #5c6d80;
		border-top: 1rpx solid #efefef;
		/* #ifdef APP-PLUS */
		padding: 32rpx 0 24rpx 0;
		/* #endif */
		/* #ifdef MP-WEIXIN */
		padding: 32rpx 0 48rpx 0;

		/* #endif */
		image {
			width: 36rpx;
			height: 36rpx;
			margin-right: 8rpx;
		}
	}

	.screens {
		width: 144rpx;
		@include flexRC;
		@include dfont(26rpx);
		white-space: nowrap;

		image {
			margin-left: 8rpx;
			width: 20rpx;
			height: 12rpx;
		}
	}

	.placeholder-class {
		color: $placeholder-color;
	}

	.uni-input-input:disabled {
		color: #a0a0a0 !important;
		background: #f3f4f5 !important;
	}
	.placeholder-class {
		color: #D1D1D6 !important;
		font-size: 32rpx !important;
	}

	.uni-actionsheet {
		.uni-actionsheet__title {
			border-bottom: 6rpx solid transparent !important;
			font-size: 28rpx !important;
			font-weight: bold !important;
		}

		.uni-actionsheet__cell {
			font-size: 28rpx !important;
			border-top: 1rpx solid #efefef !important;
		}
	}
</style>